const pathSetting = {
    login: {
        roleChoose: '/login/roleChoose',
        role: '/login/role/',
        forgetPwd: '/login/forgetPwd',
    },
    todo: {
        main: '/main/todo',
    },
    product: {
        main: '/main/product',
        search: '/product/search',
        choose: '/product/choose',
        scanner: '/product/scanner',
    },
    order: {
        main: '/main/order',
        add: '/order/add',
        edit: '/order/edit/',
        info: '/order/info/',
        success: '/order/success/',
        completed: '/order/6/info/',
    },
    report: {
        main: '/main/report',
        orderDetail: '/report/order'
    },
    profile: {
        main: '/main/profile',
        add: '/profile/add',
        edit: '/profile/edit/',
        info: '/profile/info/',
        password: '/profile/password/',
    },
}
const roleType = {
    admin: 1,
    sales: 2,
}
const actType = {
    product: {
        edit: 1,
        toStorage: 2,
        toOrder: 3,
        allDownload: 4,
        refresh: 5,
        orderDetail: 6,
        choose: 7,
    }
}
const listItemSetting = [
    //待办
    [
        {},
        {},
    ],
    //商品
    [
        //拟入库
        {
            add: { buttonString: "新增拟入库商品", actUrl: "/product/toStorage/add" },
            actList: [
                {title: "转正式入库", actType: actType.product.toStorage, notNeedAdmin: true},
                {title: "编辑", actType: actType.product.edit, notNeedAdmin: true},
            ]
        },
        //正式入库
        {
            add: { buttonString: "新增入库商品", actUrl: "/product/storage/add" },
            actList: [
                {title: "出单", actType: actType.product.toOrder, notNeedAdmin: true},
                {title: "一键下载", actType: actType.product.allDownload, notNeedAdmin: true},
                {title: "刷新", actType: actType.product.refresh, notNeedAdmin: false},
                {title: "编辑", actType: actType.product.edit, notNeedAdmin: false},
            ]
        },
        {
            add: {},
            actList: [
                {title: "查看订单详情", actType: actType.product.orderDetail, notNeedAdmin: true}
            ]
        },
        {
            add: {},
            actList: []
        },
        {
            add: {},
            actList: [
                {title: "选择", actType: actType.product.choose, notNeedAdmin: true}
            ]
        },
    ],
    //订单
    [],
    //报表
    [],
    //我的
    [],
    [],
    [],
]
const listType = {
    todo: 0,
    product: 1,
    order: 2,
    report: 3,
    profile: 4,
    cycle: 5,
    performance: 6,
    search: 7,
}
const listItemType = {
    todo: {
        waiting: 0,
        done: 1,
    },
    product:{
        toStorage: 0,
        storage: 1,
        removed: 2,
        search: 3,
        choose: 4,
    },
    order: {
        payment: 0,
        verification: 1,
        shipment: 2,
        pickup: 3,
        shipped: 4,
        settlement: 5,
        completed: 6,
    },
    report: {
        stock: 0,
        totalSale: 1,
        personalSale: 2,
        cycle: {
            current: 0,
            total: 1,
        },
        performance: {
            month: 0,
            total: 1,
        },
    },
    profile: {
        onJob: 0,
        outJob: 1,
    },
}

export default {
    pathSetting,
    listType,
    listItemType,
    listItemSetting,
    actType,
    roleType,
}